package Data.Operation.Management;

import Data.StockList;
import Data.Goods.Goodstype;



public class GoodstypeListManagement  {
	StockList goods; 
	
	public GoodstypeListManagement(){
		
	}
	
	public GoodstypeListManagement(StockList goods){
	     this.goods=goods;
	}
	
	public Goodstype findGoodstype(String id){
		Goodstype goodtype = null;
			for(Goodstype tempgoods:goods.get()){
				if(tempgoods.getGoods().getID().equals(id)){
					goodtype=tempgoods;
					break;
				}
				
			}
			return goodtype;
			
		 }
	
}
